package com.kkk.shop.goods.pojo;

import java.util.Date;
import com.kkk.shop.user.pojo.AAdmins;
/**
 * 品牌名称的pojo
 * @author kkk
 * */
public class AGoodsBrand
{
	private int id;
	private int adminsId;
	private String name;
	private String website;
	private String logoPath;
	private String content;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTime;
	
	//多对一个
	private AAdmins admins;
	
	//状态描述
	private String statusStr;
	
	public AAdmins getAdmins()
	{
		return admins;
	}
	public void setAdmins(AAdmins admins)
	{
		this.admins = admins;
	}
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public int getAdminsId()
	{
		return adminsId;
	}
	public void setAdminsId(int adminsId)
	{
		this.adminsId = adminsId;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public String getWebsite()
	{
		return website;
	}
	public void setWebsite(String website)
	{
		this.website = website;
	}
	public String getLogoPath()
	{
		return logoPath;
	}
	public void setLogoPath(String logoPath)
	{
		this.logoPath = logoPath;
	}
	public String getContent()
	{
		return content;
	}
	public void setContent(String content)
	{
		this.content = content;
	}
	public byte getStatus()
	{
		return status;
	}
	public void setStatus(byte status)
	{
		this.status = status;
	}
	public Date getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}
	public Date getPubTime()
	{
		return pubTime;
	}
	public void setPubTime(Date pubTime)
	{
		this.pubTime = pubTime;
	}
	
	//获取状态描述
	public String getStatusStr()
	{
		AGoodsBrandEnum[] goodsBrands=AGoodsBrandEnum.values();
		for(int i=0;i<goodsBrands.length;i++)
		{
			AGoodsBrandEnum goodsBrand=goodsBrands[i];
			if(goodsBrand.toString().startsWith("STATUS_"))
			{
				if(goodsBrand.getStatus()==this.getStatus())
				{
					this.statusStr=goodsBrand.getInfo();
				}
			}
		}
		return this.statusStr;
	}
}
